#include <iostream>
#include <string>
#include <time.h>
#include <unistd.h>
#include "thread_pool.hpp"
#include "Task.hpp"

std::string str="+-*/";

int main()
{
  srand((long long)time(nullptr));
  JKTP::ThreadPool<JKTK::Task>* pt=JKTP::ThreadPool<JKTK::Task>::GetInstance();

  while(true)
  {
    sleep(1);
    int x=rand()%20+1;
    int y=rand()%10+1;
    char ch=str[rand()%4];

    JKTK::Task t(x,y,ch);
    pt->Push(t);
  }
  return 0;
}
